﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Me.Prettyprint.Cassandra.Utils
{
    /// <summary>
    /// Utility that converts a CSV string to a string[] array
    /// </summary>
    public class Arrays
    {
        public static List<string> AsList(string text)
        {
            string[] stringArray = text.Split(',');
            List<string> stringList = new List<string>(stringArray.Length);
            foreach (string s in stringArray)
            {
                stringList.Add(s);
            }
            return stringList;
        }
    }
}
